﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _6
{
    class Student:Person
    {
        public string Major { get; set; }
        public int  Grade { get; set; }

        public Student(int id, string name, string sex, int cardid, int tel,string major,int  grade)
            : base(id, name, sex, cardid, tel)
        {
            this.Major = major;
            this.Grade = grade;
        }
        public void Test()
        {
            Console.WriteLine("我的编号是{0}，我叫{1}，我是{2}的，我的身份证号是{3}，我的联系方式是{4},我的专业是{5}，我的班级是{6}", Id, Name, Sex, Cardid, Tel,Major,Grade);
        }
    }
}
